<?

if ($_SESSION['config_pop']<>'') $dd=$_SESSION['config_pop'];
else $dd=$_SESSION['config'];

$sql="select * from wydruki where gdzie = '".$dd."'";

#echo $sql;
echo '<table><tr>';
$result=mysql_query($sql);
while($row = mysql_fetch_array($result))
{
echo '<td class="linia" align="center"><a href="./wydruki/'.$row['wydruk'].'.php?'.$row['zmienna'].'='.$_SESSION[$row['wart']].'" target="_blank"><img src="./img/'.$row['ikona'].'.png" height=60 width=60><br>'.$row['nazwa'].'</a></td>';

}

echo '</tr></table>';

?>
